Skip to content

feat: add more next-actions across commands - #83

Merged
jpage-godaddy merged 3 commits into
rust-portfrom
more-next-actions
Jul 8, 2026
Merged

jpage-godaddy merged 3 commits into
rust-portfrom
more-next-actions

Conversation

@jpage-godaddy

Copy link
Copy Markdown
Collaborator

Summary

  • Bumps cli-engine to the now-published 0.4.1.
  • Fixes 6 clippy::unwrap_used violations in pat/mod.rs tests, and closes the CI gap that let them merge unblocked: cargo clippy was missing --all-targets, so test-target code wasn't linted (fixed in both cicd.yml and rust-port-alpha.yaml).
  • Adds NextAction suggestions to more command outputs:
    • actions list → actions describe <action>
    • dns add/set/delete → dns list (verify the write)
    • domain agreements → domain quote / domain purchase
    • domain nameservers set → domain get (confirm the update)
    • hosting nodejs status → deployment list / logs
    • payments add → domain quote
  • Fixes domain quote's next-action placeholder (<quote-token>, matching the param name) and pre-fills it with the actual token value instead of leaving it required.

Test plan

  • cargo fmt --check
  • cargo clippy --all-targets -- -D warnings
  • cargo test --all-targets (212 passed)

…equire --all-targets in CI

cli-engine 0.4.1 is now published. Fixes 6 clippy::unwrap_used violations in
pat/mod.rs tests that merged unblocked because CI's `cargo clippy` invocation
only lints lib/bin targets by default, not tests; adds --all-targets so the
lint actually covers test code going forward.
… commands

Suggests logical follow-up commands after: actions list, dns add/set/delete
(verify via dns list), domain agreements (quote/purchase), domain nameservers
set (confirm via domain get), hosting nodejs status (deployment list/logs),
and payments add (domain quote). Also fixes the domain quote --quote-token
placeholder to match the value actually returned (quote-token, not token).

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR expands the CLI’s “next action” guidance across multiple commands while also tightening Rust CI linting by ensuring clippy runs against all targets. It also bumps cli-engine to 0.4.1 and removes unwrap() usage in PAT tests to satisfy clippy::unwrap_used.

Changes:

  • Add NextAction suggestions to more command outputs (actions, dns writes, domains flows, hosting nodejs status, payments add).
  • Bump cli-engine dependency to 0.4.1 and update lockfile accordingly.
  • Fix clippy CI coverage (--all-targets) and replace unwrap() with expect() in PAT tests.

Reviewed changes

Copilot reviewed 11 out of 12 changed files in this pull request and generated 1 comment.

Show a summary per file
File Description
rust/src/payments/mod.rs Add a “next action” from payments add to domain quote.
rust/src/pat/mod.rs Replace unwrap() in tests to satisfy clippy linting.
rust/src/hosting/nodejs/mod.rs Add next actions after hosting nodejs status (deployments/logs).
rust/src/domain/quote.rs Fix purchase next-action placeholder and prefill the quote token.
rust/src/domain/nameservers.rs Add next action to confirm nameserver updates via domain get.
rust/src/domain/agreements.rs Add next actions to proceed from agreements to quoting/purchasing.
rust/src/dns/mod.rs Add helper-driven next action to verify DNS writes via dns list.
rust/src/actions_catalog/mod.rs Add next action from actions list to actions describe.
rust/Cargo.toml Bump cli-engine to 0.4.1.
rust/Cargo.lock Update lockfile for the new cli-engine version.
.github/workflows/rust-port-alpha.yaml Run clippy with --all-targets in CI.
.github/workflows/cicd.yml Run clippy with --all-targets in CI.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread rust/src/dns/mod.rs Resolved
Inserting verify_with_list_action above summarize_add_outcomes left
summarize_add_outcomes's rustdoc comment attached to the new function
instead (rustdoc comments bind to the next item). Give each function
its own doc block.

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 11 out of 12 changed files in this pull request and generated 1 comment.

Comment thread rust/src/domain/nameservers.rs Resolved

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 11 out of 12 changed files in this pull request and generated no new comments.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants